luci-base: sys.lua: fix parsing conntrack entries without timeout
authorJo-Philipp Wich <[email protected]>
Fri, 29 Apr 2022 10:16:19 +0000 (12:16 +0200)
committerJo-Philipp Wich <[email protected]>
Fri, 29 Apr 2022 10:18:46 +0000 (12:18 +0200)
commita993714790cfe22bfae3ccd2f8b036b1434fe244
treea5c7807f794f19a626138e4a1dc3f45916517a02
parent0473e99fab038b84b4b66dba15d5c63b08d625c1
luci-base: sys.lua: fix parsing conntrack entries without timeout

Flow offloaded conntrack entries carry no timeout value and trip up the
record parsing routine. Adjust the code to properly deal with such entries.

Ref: https://forum.openwrt.org/t/offloading-breaks-connections-list/126423
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 531c0ecff2ca57c4bc0aacee66a0746814fefc78)
modules/luci-base/luasrc/sys.lua